package cfg
import (
	"github.com/vharitonsky/iniflags"
	"flag"
)
var(
	ConsoleOnly= flag.Bool("console_only", false, "只是控制台程序,不启动webserver")
	Debug = flag.Bool("debug", true, "打印调试信息")
	Env = flag.String("env", "test", "环境")

	DefaultAge = flag.Int64("tage", 1, "token有效期,小时")
	CServer = flag.String("cserver", "0.0.0.0:8081", "绑定Ip")
	DataDir = flag.String("datadir", "./var", "数据目录")
)

func init() {
	iniflags.Parse();
}
